package com.qyhl.webtv.module_news.news.nanbu;


import com.qyhl.webtv.commonlib.entity.news.NewsBean;

import java.util.List;

public class NanBuNewsPresenter implements NanBuNewsContract.NanBuNewsPresenter {
    private NanBuNewsModel mModel;
    private NanBuNewsContract.NanBuNewsView mView;

    public NanBuNewsPresenter(NanBuNewsContract.NanBuNewsView mView) {
        this.mView = mView;
        this.mModel = new NanBuNewsModel(this);
    }

    @Override
    public void getData(String catalogId, String page) {
        mModel.getData(catalogId, page);
    }

    @Override
    public void setListData(List<NewsBean> beanList, boolean isMore) {
        mView.setListData(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
